
package com.joysuch.wwyt.risk.bean;

import java.util.Date;
import java.util.List;

import javax.validation.constraints.NotEmpty;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.risk.entity.RiskPointEvaluationJhaItem;
import lombok.Data;

//风险点JHA评估提交,创建新的提交。可在里面直接创建风险点
//2020年01月10日13:37:04
@Data
public class RiskJhaEvaluationNewBean {
    private Long id;
    private Long riskPointId;

    private String riskPointName;

    private Long riskDistrictId;
    // 创建评估任务的模块
    private String moduleName;
    // private String jobAcitity;
    @NotNull(field = "分析人")
    private Long analyzeUserId;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(field = "分析时间")
    private Date analyzeTime;
    // @NotNull(field = "风险级别")
    private Integer riskLevel;
    // 受控号
    // @NotNull(field = "受控号")
    private String inControlCode;

    private Long jobId;

    @NotNull(field = "分析项目列表")
    @NotEmpty
    List<RiskPointEvaluationJhaItem> items;
    //是否共享风险点:null风险点,1风险点库
    private  Integer share;

}
